package com.xja.service.impl;

import com.xja.entity.Active;
import com.xja.mapper.ActiveMapper;
import com.xja.service.ActiveService;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service
public class ActiveServiceImpl implements ActiveService {
    @Autowired(required = false)
    private ActiveMapper activeMapper;

    @Override
    public List<Active> getActives() {
        return activeMapper.getActives();
    }

    @Override
    public Active getActiveById(Integer aid) {
        return activeMapper.getActiveById(aid);
    }

    @Override
    public boolean addPerson(Integer aid) {
        return activeMapper.addPerson(aid);
    }
}
